package com.GDOU.bean;

import org.springframework.stereotype.Component;

@Component
public class Teacher {
    //教师id
    private Integer teaId;
    //姓名
    private String teaName;
    //教师编号
    private String teaNum;
    //性别
    private String teaSex;
    //年龄
    private Integer teaAge;
    //身份证号
    private String idCard;
    //电话号码
    private String phone;
    //教师住址
    private String address;
    //密码
    private String pwd;

    public Teacher() {
    }

    public Teacher(Integer teaId, String teaName, String teaNum, String teaSex, Integer teaAge, String idCard, String phone, String address, String pwd) {
        this.teaId = teaId;
        this.teaName = teaName;
        this.teaNum = teaNum;
        this.teaSex = teaSex;
        this.teaAge = teaAge;
        this.idCard = idCard;
        this.phone = phone;
        this.address = address;
        this.pwd = pwd;
    }

    public Integer getTeaId() {
        return teaId;
    }

    public void setTeaId(Integer teaId) {
        this.teaId = teaId;
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public String getTeaNum() {
        return teaNum;
    }

    public void setTeaNum(String teaNum) {
        this.teaNum = teaNum;
    }

    public String getTeaSex() {
        return teaSex;
    }

    public void setTeaSex(String teaSex) {
        this.teaSex = teaSex;
    }

    public Integer getTeaAge() {
        return teaAge;
    }

    public void setTeaAge(Integer teaAge) {
        this.teaAge = teaAge;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaId=" + teaId +
                ", teaName='" + teaName + '\'' +
                ", teaNum='" + teaNum + '\'' +
                ", teaSex='" + teaSex + '\'' +
                ", teaAge=" + teaAge +
                ", idCard='" + idCard + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
